const pre = '/containerModelDesign'
const meta = {
  auth: true,
  menu: true,
}

export default [
  // routing
  {
    path: pre+'routing',
    name: 'routingModelDesign',
    meta: {
      title: {
        'zh-CN': '工艺路线模型设计',
        'en-US': 'routing model Design',
      },
    },
    icon: 'md-options',
    children: [
      // routing
      {
        path: pre + '/workcenter',
        name: 'workcenter',
        meta: {
          ...meta,
          title: {
            'zh-CN': '工作中心模型',
            'en-US': 'workcenter model',
          },
        },
        children: [
          {
            path: pre + '/routing/workcenter/modelDefinition',
            name: 'workcenterModel',
            meta: {
              auth: true,
              menu: true,
              title: {
                'zh-CN': '工作中心模型设计',
                'en-US': 'workcenter model design',
              },
            },
          },
          {
            path: pre + '/routing/workcenter/instanceManagement',
            name: 'workcenterInstance',
            meta: {
              auth: true,
              menu: true,
              title: {
                'zh-CN': '工作中心实例管理',
                'en-US': 'workcenter instance management',
              },
            },
          },
        ],
      },
      {
        path: pre + '/routing/routing_selfDefined/modelDefinition',
        componentPath: pre + '/routing/routing_selfDefined/RoutingConfig.vue',
        name: 'routing_selfDefinedModel',
        meta: {
          auth: true,
          menu: true,
          title: {
            'zh-CN': '工艺路线模型设计',
            'en-US': 'routing_selfDefined model design',
          },
        },
      },
    ],
  },
  // twins
  {
    path: pre+'twins',
    name: 'twinsModelDesign',
    meta: {
      title: {
        'zh-CN': '孪生模型设计',
        'en-US': 'twins model Design',
      },
    },
    icon: 'md-options',
    children: [
      // twins
      {
        path: pre + '/workunit',
        name: 'workunit',
        meta: {
          auth: true,
          menu: true,
          title: {
            'zh-CN': '工位模型',
            'en-US': 'workunit model',
          },
        },
        children: [
          {
            path: pre + '/twins/workunit/modelDefinition',
            name: 'workunitModel',
            meta: {
              auth: true,
              menu: true,
              title: {
                'zh-CN': '工位模型设计',
                'en-US': 'workunit model design',
              },
            },
          },
          {
            path: pre + '/twins/workunit/instanceManagement',
            name: 'workunitInstance',
            meta: {
              auth: true,
              menu: true,
              title: {
                'zh-CN': '工位实例管理',
                'en-US': 'workunit instance management',
              },
            },
          },
        ],
      },
      {
        path: pre + '/twins_selfDefined',
        name: 'twins_selfDefined',
        meta: {
          ...meta,
          title: {
            'zh-CN': '孪生自定义模型',
            'en-US': 'twins_selfDefined model',
          },
        },
        children: [
          {
            path: pre + '/twins/twins_selfDefined/modelDefinition',
            name: 'twins_selfDefinedModel',
            meta: {
              auth: true,
              menu: true,
              title: {
                'zh-CN': '孪生自定义模型设计',
                'en-US': 'twins_selfDefined model design',
              },
            },
          },
          {
            path: pre + '/twins/twins_selfDefined/instanceManagement',
            name: 'twins_selfDefinedInstance',
            meta: {
              auth: true,
              menu: true,
              title: {
                'zh-CN': '孪生自定义实例管理',
                'en-US': 'twins_selfDefined instance management',
              },
            },
          },
        ],
      },
    ],
  },
  // logic
  {
    path: pre+'logic',
    name: 'logicModelDesign',
    meta: {
      title: {
        'zh-CN': '逻辑模型设计',
        'en-US': 'logic model Design',
      },
    },
    icon: 'md-options',
    children: [
      // logic
      {
        path: `${pre}/logic`,
        name: 'logic',
        meta: {
          ...meta,
          title: {
            'zh-CN': '逻辑模型',
            'en-US': 'logic model',
          },
        },
        children: [
          {
            path: `${pre}/logic/modelDefinition`,
            name: 'logicModel',
            meta: {
              ...meta,
              title: {
                'zh-CN': '逻辑模型设计',
                'en-US': 'logic model design',
              },
            },
          },
          {
            path: `${pre}/logic/instanceManagement`,
            name: 'logicInstance',
            meta: {
              ...meta,
              title: {
                'zh-CN': '逻辑实例管理',
                'en-US': 'logic instance management',
              },
            },
          },
        ],
      },
      {
        path: `${pre}/staticLogic`,
        name: 'staticLogic',
        meta: {
          ...meta,
          title: {
            'zh-CN': '静态逻辑模型',
            'en-US': 'staticLogic model',
          },
        },
        children: [
          {
            path: `${pre}/staticLogic/modelDefinition`,
            name: 'staticLogicModel',
            meta: {
              ...meta,
              title: {
                'zh-CN': '静态逻辑模型设计',
                'en-US': 'staticLogic model design',
              },
            },
          },
          {
            path: `${pre}/staticLogic/instanceManagement`,
            name: 'staticLogicInstance',
            meta: {
              ...meta,
              title: {
                'zh-CN': '静态逻辑实例管理',
                'en-US': 'staticLogic instance management',
              },
            },
          },
        ],
      },
      {
        path: `${pre}/tank`,
        name: 'tank',
        meta: {
          ...meta,
          title: {
            'zh-CN': '箱体模型',
            'en-US': 'tank model',
          },
        },
        children: [
          {
            path: `${pre}/tank/modelDefinition`,
            name: 'logicModel',
            meta: {
              ...meta,
              title: {
                'zh-CN': '箱体模型设计',
                'en-US': 'tank model design',
              },
            },
          },
          {
            path: `${pre}/tank/instanceManagement`,
            name: 'logicInstance',
            meta: {
              ...meta,
              title: {
                'zh-CN': '箱体实例管理',
                'en-US': 'tank instance management',
              },
            },
          },
        ],
      },
    ],
  },
  // statistics
  // {
    // path: pre+'statistics',
    // name: 'statisticsModelDesign',
    // meta: {
    //   title: {
    //     'zh-CN': '统计模型设计',
    //     'en-US': 'statistics model Design',
    //   },
    // },
    // icon: 'md-options',
    // children: [
    //   {
      //   path: `${pre}/statistics`,
      //   name: 'statistics',
      //   icon: 'md-options',
      //   meta: {
      //     ...meta,
      //     title: {
      //       'zh-CN': '统计模型',
      //       'en-US': 'statistics model',
      //     },
      //   },
      //   children: [
      //     {
      //       path: `${pre}/statistics/statisticsModel`,
      //       name: 'statisticsModel',
      //       meta: {
      //         ...meta,
      //         title: {
      //           'zh-CN': '统计模型设计',
      //           'en-US': 'statistics model design',
      //         },
      //       },
      //     },
      //     {
      //       path: `${pre}/statistics/statisticsInstance`,
      //       name: 'statisticsInstance',
      //       meta: {
      //         ...meta,
      //         title: {
      //           'zh-CN': '统计实例管理',
      //           'en-US': 'statistics instance management',
      //         },
      //       },
      //     },
      //   ],
      // },
  //   ]
  // },
]
